package com.cn.wanxi.thread;

public class MyThread extends Thread {
    /**
     * 重写父类的run方法
     */
    @Override
    public void run() {
        for (int i = 0; i < 100; i++) {
            System.out.println("线程开启" + getName() + "：执行第 " + i + " 次");
        }
    }
}